Skip to content

BlobLTTIntegrator extended with added support for expanding blob radius - #203

Open
grzegorzbor wants to merge 2 commits into
masterfrom
expanding-blob-integrator
Open

BlobLTTIntegrator extended with added support for expanding blob radius#203
grzegorzbor wants to merge 2 commits into
masterfrom
expanding-blob-integrator

Conversation

@grzegorzbor

Copy link
Copy Markdown
Collaborator

No description provided.

@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.19%. Comparing base (084bff3) to head (1558b0e).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #203      +/-   ##
==========================================
+ Coverage   97.18%   97.19%   +0.01%     
==========================================
  Files          52       52              
  Lines        5045     5071      +26     
==========================================
+ Hits         4903     4929      +26     
  Misses        142      142              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@grzegorzbor
grzegorzbor requested a review from jsitarek August 24, 2026 22:00
@grzegorzbor
grzegorzbor force-pushed the expanding-blob-integrator branch from 7e4e2bb to 4c487f4 Compare August 29, 2026 22:40
]
assert u.allclose(u.Quantity(widths), 2 * (1e16 * u.cm / c).to("s"), rtol=1e-12)

def test_expanding_window_has_asymmetric_limits(self):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as we discussed today this test is very weak (it only checks sign) instead it is much better to include a test in which min and max times are calculated by hand and compared with the output

Comment thread agnpy/time_evolution/blob_ltt_integration.py Outdated
Comment thread agnpy/time_evolution/blob_ltt_integration.py Outdated
Comment thread agnpy/time_evolution/blob_ltt_integration.py Outdated
Comment thread agnpy/time_evolution/blob_ltt_integration.py
``start_time`` rather than at 0. When ``False``, that situation raises instead, naming
how much earlier ``blob``'s history would need to start.
``start_time`` rather than at 0. Its radius is not an assumption, though: under
``expansion`` the backdated snapshot's ``R_b`` is set to ``integrator.radius_at(start)``,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think you really need this special case. If the blob is expanding assuming that it has a steady state is hard to justify. You can just throw an error if somebody switches on this option with expanding blob

@jsitarek jsitarek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, just some of the descriptions are to be clarified

Comment thread agnpy/time_evolution/blob_ltt_integration.py Outdated
@grzegorzbor
grzegorzbor force-pushed the expanding-blob-integrator branch from 21727cf to 1558b0e Compare September 4, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants